package cn.zzuisa.deutsch.service.impl;



import cn.zzuisa.deutsch.entity.Article;
import cn.zzuisa.deutsch.mapper.ArticleMapper;
import cn.zzuisa.deutsch.service.ArticleService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author frank
 * @since 2019-05-07
 */
@Service
public class ArticleServiceImpl extends ServiceImpl<ArticleMapper, Article> implements ArticleService {


    @Override
    public IPage<Map<String, Object>> pageByEntity(IPage<Map<String, Object>> page, Article article) {
        IPage<Map<String, Object>> mapIPage = baseMapper.pageByEntity(page, article);
        return mapIPage;
    }

    @Override
    public Map<String, Object> showArticleById(Long id) {
        Map<String, Object> item = baseMapper.showArticleById(id);
        return item;
    }
}
